<?php

/* DAO Base Class
 * 
 */
class Dao {
    protected $m_cx;

    private $_hostname = "localhost";
    private $_database = "uwiss";
    private $_username = "cs446";
    private $_password = "644sc";

    public function __construct() {
        $this->m_cx = mysql_connect
            ($this->_hostname
            ,$this->_username
            ,$this->_password);

	if(! $this->m_cx ) die( mysql_error() );
        if(! mysql_select_db('uwiss', $this->m_cx) ) die( mysql_error() );
    }

}

?>
